class ProductAttributeTemplate < ActiveRecord::Base
  belongs_to :data_type
  belongs_to :template_category
  belongs_to :lookuplist
  has_many :product_attribute_values
  belongs_to :template_style
  validates_presence_of :lookuplist_id,:if=> Proc.new{|model| model.data_type_id==2},:on=>:save

end
